package com.swanclouds.api.managers;

import com.swanclouds.common.RestService;
import com.swanclouds.model.common.ActionResponse;
import com.swanclouds.model.common.Payload;
import com.swanclouds.model.managers.GenerateCSR;
import com.swanclouds.redfish.managers.domain.HttpsCertModel;
import com.swanclouds.redfish.managers.domain.SecurityServiceModel;
/**
 * Author: 李文强
 * Title: SecurityService
 * Description: TODO
 */
public interface SecurityService extends RestService {
    /**
     *查询安全服务详情信息
     * @return SecurityServiceModel
     */
    SecurityServiceModel get();

    /**
     * 查询安全服务详情信息
     * @return HttpsCertModel
     */
    HttpsCertModel detail();

    /**
     * 生成SSL证书资源信息
     * @param generateCSR 生成SSL证书资源信息参数
     * @return HttpsCertModel
     */
    HttpsCertModel generateCSR(GenerateCSR generateCSR);

    /**
     * 上传SSL证书
     * @param payload 文件上传
     * @return ActionResponse
     */
    ActionResponse ImportServerCertificate(Payload payload);
}
